/**
 * Created by cj on 2017/1/19.
 */

const  cmd=require("child_process").exec;
cmd("dir /b",function (err, stdout, stderr) {

    if(err){
        console.log(err);return;
    }
    console.log(stdout);

    console.log(stderr);
});

var name = process.argv[2];
console.log(name);
var argv = require('yargs').argv;
console.log('hello ', argv.name);